home *** CD-ROM | disk | FTP | other *** search
- Path: quadostimpy.natinst.com!user
- From: rcauvin@natinst.com (Roger L. Cauvin)
- Newsgroups: comp.lang.c++
- Subject: Re: Pure Virtual Destructor Question
- Date: 9 Feb 1996 14:56:27 GMT
- Organization: National Instruments
- Message-ID: <rcauvin-0902960901140001@quadostimpy.natinst.com>
- References: <4fas7a$7ns@comet2.magicnet.net> <4fecq0$k4e@news4.digex.net>
- NNTP-Posting-Host: quadostimpy.natinst.com
-
- In article <4fecq0$k4e@news4.digex.net>, ell@access4.digex.net (Ell) wrote:
-
- >It is _illegal_ to logically, or physically "define" a pure
- > virtual function in the class it is "declared" in. A pure virtual should
- > only be defined in classes derived from the class where the pure virtual
- > is declared. Only derived classes should "do some destructor stuff".
-
- Actually, it is acceptable to define a pure virtual function in the class
- in which it is declared. Pure virtual destructors are a special case;
- they MUST be defined in the class in which they are declared.
-
-
- Roger
-
- ---
-
- Roger L. Cauvin
- rcauvin@natinst.com
- Software Engineer
- National Instruments
-